package com.hrt.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class StocksAction {

	/**
	 * 进库
	 */
	public final static Integer ENTER_STOCKS=0;
	
	/**
	 * 出库
	 */
	public final static Integer OUT_STOCKS=1;
	
	/**
	 * 退货入库
	 */
	public final static Integer BACK_STOCKS=2;
	
	/**
	 * 退货出库
	 */
	public final static Integer BACK_PROVIDER=3;
	
	
	protected static List<Map<String,Object>> actions;


	public static List<Map<String, Object>> getActions() {
		
			actions=new ArrayList<Map<String, Object>>();
			Map<String, Object> action_enter=new HashMap<String, Object>();
			action_enter.put("key", ENTER_STOCKS);
			action_enter.put("val", "进库");
			
			Map<String, Object> action_out=new HashMap<String, Object>();
			action_out.put("key", OUT_STOCKS);
			action_out.put("val","出库" );
			
			Map<String, Object> action_backEnter=new HashMap<String, Object>();
			action_backEnter.put("key",BACK_STOCKS);
			action_backEnter.put("val", "退货入库" );
			Map<String, Object> action_backOut=new HashMap<String, Object>();
			action_backOut.put("key", BACK_PROVIDER);
			action_backOut.put("val", "退货出库");
			
			actions.add(action_enter);
			actions.add(action_out);
			actions.add(action_backEnter);
			actions.add(action_backOut);
		
		
		return actions;
	}


	public static void setActions(List<Map<String, Object>> actions) {
		StocksAction.actions = actions;
	}


	
	
	
	
	
}
